package com.sftz.modules.web.videoplay.module;

import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.log.Log;
import org.nutz.log.Logs;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.Param;

import com.sftz.modules.web.videoplay.form.AudioStudyForm;
import com.sftz.modules.web.videoplay.form.VideoStudyForm;
import com.uxuexi.core.web.chain.support.JsonResult;

@IocBean
@At("/web/videoplay/")
public class VideoAuthModule {

	private static final Log log = Logs.get();

	/**
	 * 视频学习接口
	 * <p>
	 * 用于更新视频学习进度
	 */
	@At
	@Ok("json")
	public Object videoStudy(@Param("..") final VideoStudyForm form) {
		return JsonResult.success("success");
	}

	/**
	 * 音频学习接口
	 * <p>
	 * 用于更新视频学习进度
	 */
	@At
	@Ok("json")
	public Object audioStudy(@Param("..") final AudioStudyForm form) {
		return JsonResult.success("success");
	}

}
